Release 10.1A: OpenEdge Development:
Progress 4GL Reference


CONNECT( ) method

Physically connects and associates an AppServer instance, or logically connects an application service, with the specified server handle. The current application becomes a client application of the connected AppServer.

Return type: LOGICAL

Applies to: Server object handle

Syntax
CONNECT ( [ connection-parms ] [ , userid ] [ , password ] 
            [ , app-server-info ] ) 

All of the parameters for the CONNECT( ) method are optional and have defaults if you do not specify them.

connection-parms

A character string containing a space-separated list of one or more connection parameters necessary to establish an AppServer connection. These parameters include two types:

[ userid ] [ , password ] [ , app-server-info ]

From one to three character string parameters passed as input to the AppServer Connect procedure. The possible values that you can specify for these parameters is determined by the Connect procedure for the AppServer application. If you omit a parameter, it defaults to the Unknown value (?).

If an error occurs while executing the CONNECT( ) method, the method returns FALSE. Otherwise, it returns TRUE. An error can occur if:

If the CONNECT( ) method completes successfully, the CONNECTED( ) method returns TRUE.

The connection lasts until the client application executes the server handle DISCONNECT( ) method or until Progress detects any failure conditions that automatically terminate the connection.

The -URL connection parameter allows you to connect to an AppServer using the AppServer Internet Adapter (AIA) with the following protocols: HTTP and HTTPS.

For more information on AppServers or the AppServer Internet Adapter (AIA), see OpenEdge Application Server: Developing AppServer Applications .


Copyright © 2005 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095